package com.member.shop.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author wangxin
 * @version 1.0
 * @date 2024/11/11 下午3:57
 **/
@Data
public class ForgotPasswordDto {

    @NotBlank(message = "手机号")
    private String phoneNumber;

    @NotBlank(message = "新密码不能为空")
    @Length(min = 8, max = 20, message = "密码长度为8-20位")
    private String newPassword;



    @NotBlank(message = "验证码不能为空")
    private String verificationCode;





}
